# Maintainer: Gennady Feldman <gena01@gmail.com>
# Contributor: Gennady Feldman <gena01@gmail.com>
pkgname=py3-avro
_pkgname=avro
pkgver=1.11.0
pkgrel=0
pkgdesc="Serialization and RPC framework"
url="https://avro.apache.org/"
arch="noarch"
license="Apache-2.0"
depends="py3-six"
makedepends="
	py3-build
	py3-installer
	py3-isort
	py3-pycodestyle
	py3-setuptools
	py3-wheel
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/apache/$_pkgname/archive/release-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-release-$pkgver/lang/py"

build() {
	python3 -m build --no-isolation --wheel
}

check() {
	python3 setup.py test
}

package() {
	python3 -m installer -d "$pkgdir" \
		dist/avro-$pkgver-py2.py3-none-any.whl
}

sha512sums="
81627de36eb756ca09e54853d64fccfacfde81094f7395cd4ead3a1935b38308818ff16902cd19a2814cda2ac8772d7dedaafbbdee4c04c95d3d227024271823  py3-avro-1.11.0.tar.gz
"
